// Copyright (c) 2021 Presto Labs Pte. Ltd.
// Author: xguo

#pragma once

#include <memory>
#include <string>

#include "coin2/exchange/base/order/order.h"
#include "coin2/exchange/dydx_futures/api_order/native_private_client.h"

namespace coin2::exchange::dydx_futures::api_order {

class DydxV3RestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestClient = DydxV3NativePrivateClient;
  using RestParams = DydxV3NativePrivateClient::RestParams;

 public:
  using RestSubscriber::RestSubscriber;
  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }
  void QueryBalance();
  void QueryOpenOrders();
  void QueryFills();
  void SubscribeAsync() override;
};

}  // namespace coin2::exchange::okex_v5::api_order
